package org.example.kidscode.repository;

import org.example.kidscode.entity.ReservationSetting;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;

public interface ReservationSettingRepository extends JpaRepository<ReservationSetting, String> {
    // 确保返回Optional类型
    Optional<ReservationSetting> findByCourseId(String courseId);

    // 其他方法保持自动实现
    boolean existsByCourseId(String courseId);
}